// 封装各个组件中的请求
import request from "@/api/request"

// 全息健康度获取所有接口
/* export function listHolographic() {
    return request({
        menthod: "/holographic/selectListRealTime",
        type: "GET",
        params: [
            { "code": 420 }
        ]
    })
} */

//获取当前健康度
export const getNowHealth = (params) => request.get('/holographic/selectListRealTime', params);
//获取地图数据和健康度排序
export const getMapCivilCodeJson = (params) => request.get('/holographic/selectHealthByCode', params);
//获取告警数据
export const getAlarmData = (params) => request.get('/alarm/selectListAllAlarm', params);
//获取当前分层健康度数据
export const getlayerdNowData = (params) => request.get('/level/selectListNow', params);
//获取历史分层健康度数据
export const getlayerdOldData = (params) => request.get('/level/selectListByGroup', params);
//获取健康度排序数据
export const getHealthData = (params) => request.get('/holographic/selectHealthByCode', params);
//获取全息度数据
export const getHolographicData = (params) => request.get('/holographic/selectListByGroup', params);
//根据地区名获取码值
export const getCityCivilCode = (params) => request.get('/civilcode/selectCodeByName', params);


